NAME_EXE =	philo1
SRC_EXE =       list.c\
		parseur_xml2.c\
		parseur_xml.c\
		philosophe.c\
		philosophe2.c\
		plsp.c\
		baguette.c\
		constructors.c\

OBJ_EXE = $(SRC_EXE:.c=.o)

CXX = gcc -W -Wall -Werror

all: $(NAME_EXE)

$(NAME_EXE): $(OBJ_EXE)
	$(CXX) -o $(NAME_EXE) $(OBJ_EXE) -lpthread -lrt

clean:
	rm -f $(OBJ_EXE)

fclean: clean
	rm -f $(NAME_EXE)

re: fclean all